package Java攻略._3_流式操作._1_流的创建;

import java.util.Arrays;
import java.util.stream.Collectors;

public class _3_利用Arrays_stream方法创建流 {

    public static void main(String[] args) {
        String[] munstres = {"Herman", "Lily", "Eddie", "Marilyn", "Grandpa"};
        String names = Arrays.stream(munstres)
                .collect(Collectors.joining(","));
        System.out.println(names);
    }
}
